<!-- 首页 -->
<template>
  <Headtar />
  <div class="home">

    <!-- 固钉菜单：购物车 -->
    <el-affix :offset="450"
              target=".content"
              style="height:0">
      <el-menu class="f_menu"
               index="1"
               :router="true">
        <template v-slot:dropdown>
          <i class="el-incon-location"></i>
          <span>导航一</span>
        </template>
        <el-menu-item index="/about">
          <el-icon color="#409EFC"
                   class="no-inherit">
            <ChatSquare />
          </el-icon>
          <span>更多商品</span>
        </el-menu-item>
        <el-menu-item index="/shoppingcard">
          <el-icon color="#409EFC"
                   class="no-inherit">
            <ShoppingTrolley />
          </el-icon>
          <span>购物车</span>
        </el-menu-item>
        <el-menu-item index="3">
          <el-icon>
            <Edit />
          </el-icon>
          <span>暂无</span>
        </el-menu-item>
      </el-menu>
    </el-affix>
    <div class="head_card"
         style="width: 100%;">
      <headcard />
    </div>

    <!-- 内容页 -->
    <div class="content">
      <div class="content_top">
        <img src="../assets/head/centent_top.jpg"
             alt="">
      </div>

      <!-- 左边内容页 -->
      <div class="content_left">
        <el-menu :default-active="activeIndex"
                 mode="vertical"
                 class="centent_el_menu"
                 @select="handleSelect">

          <el-popover placement="right"
                      :width="400"
                      trigger="hover">
            <template #reference>
              <el-menu-item index="2-1">传统纯茶</el-menu-item>
            </template>
            <goodscard />
          </el-popover>
          <el-menu-item index="2-2">特色花茶</el-menu-item>
          <el-menu-item index="2-3">独特饮品</el-menu-item>
          <el-menu-item index="2-3">周边潮玩</el-menu-item>
        </el-menu>
      </div>

      <!-- 右边内容页 -->
      <div class="content_right"
           style="width: 65%;">
        <goodscard />
      </div>

    </div>

    <!-- 底部信息栏 -->
    <div class="footer">
      <div class="other-link clearfix">
        <div class="link-look clearfix">
          <div class="link-list">
            <h3 class="link-title">选购指南</h3>
            <ul>
              <li>
                <a href="#">优质茶叶</a>
              </li>
              <li>
                <a href="#">花茶系列</a>
              </li>
              <li>
                <a href="#">养身补品</a>
              </li>
              <li>
                <a href="#">周边潮玩</a>
              </li>
            </ul>
          </div>
          <div class="link-list">
            <h3 class="link-title">服务中心</h3>
            <ul>
              <li>
                <a href="#">申请售后</a>
              </li>
              <li>
                <a href="#">售后政策</a>
              </li>
              <li>
                <a href="#">订单查询</a>
              </li>
              <li>
                <a href="#">保障服务</a>
              </li>
            </ul>
          </div>
          <div class="link-list">
            <h3 class="link-title">线下门店</h3>
            <ul>
              <li>
                <a href="#"
                   target="_blank"
                   class="c_login">深圳</a>
              </li>
              <li>
                <a href="#"
                   target="_blank"
                   class="c_login">广州</a>
              </li>
            </ul>
          </div>
          <div class="link-list">
            <h3 class="link-title">关于茶艾</h3>
            <ul>
              <li>
                <a href="#">了解茶艾</a>
              </li>
              <li>
                <a href="#">加入茶艾</a>
              </li>
              <li>
                <a href="#">投资者关系</a>
              </li>
              <li>
                <a href="#">可持续发展</a>
              </li>
            </ul>
          </div>
          <div class="link-list">
            <h3 class="link-title">关注我们</h3>
            <ul>
              <li>
                <a href="#">新浪微博</a>
              </li>
              <li>
                <a href="#">官方微信</a>
              </li>
              <li>
                <a href="#">联系我们</a>
              </li>
              <li>
                <a href="#">公益基金会</a>
              </li>
            </ul>
          </div>
        </div>
        <div class="sucai-contact">
          <div class="bottom-logo">
            <a href="#"></a>
          </div>
          <div class="sucai-companyname">茶艾科技有限公司-深圳总部</div>
          <div class="sucai-phone">7*24小时在线电话：020-888-8888</div>
          <div class="sucai-qq">7*24小时在线 QQ：88888888</div>
          <div class="erweima-box clearfix">
            <div class="wechat-erwei">
              <!-- <el-image class="good_img"
                      :src="url"
                      :fit="fit"
                      style="width:100px;height: 100px;" /> -->
              <div>微信二维码</div>
              <div class="sucai_wechat"></div>
            </div>
            <div class="phonenet-erwei">
              <div>手机网站二维码</div>
              <div class="sucai_web"></div>
            </div>
          </div>
        </div>
      </div>
      <div class="footer-bottom">
        <p>Copyright © VW552 Studio Ltd. All Rights Reserved. 2023 版权所有</p>
        <p><span>11031713</span><span>号
          </span><span><span class="police-icon"></span>粤公网安备 11010802009073号</span>
          <span>xxxxxxxxxxxxxxx：B1-0000000</span>
        </p>
      </div>
    </div>
  </div>
</template>
<script>
import Goodscard from '../components/Goodscard.vue'
import Headcard from '../components/Head.vue'
import Headtar from '../views/MainFrame.vue'
export default {
  name: 'HomeView',
  components: {
    Headcard,
    Goodscard,
    Headtar,
  },
}
</script>
<style lang="scss">
.home {
}
.head_card {
  text-align: left;
  height: auto;
}
.content {
  box-sizing: border-box;
  /* height: 2000px; */
  width: 80%;
  padding: 40px;
  overflow: auto;
  margin: auto;
}
.content_top {
  width: 100%;
  /* margin-bottom: 20px; */
}
.content_top img {
  /* 等比例放大缩小图片 */
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
}
.content_right {
  float: right;
  width: 65%;
  height: 100%;
  /* background-color: aqua; */
}
.content_left {
  float: left;
  height: 100%;
  width: 30%;
  background-color: aquamarine;
}
.f_menu {
  width: 130px;
  background: rgb(255, 255, 255);
  box-shadow: 0px 8px 20px rgba(32, 56, 54, 0.35);
  border-radius: 0 24px 24px 0;
  backdrop-filter: blur(4px);
}
.el-row {
  margin-bottom: 20px;
}
.el-row:last-child {
  margin-bottom: 0;
}
.el-col {
  border-radius: 4px;
}

.grid-content {
  border-radius: 4px;
  min-height: 36px;
}

#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

nav {
  padding: 30px;

  a {
    font-weight: bold;
    color: rgb(235, 197, 198);

    &.router-link-exact-active {
      color: #42b983;
    }
  }
}
* {
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
}
body {
  margin: 0 auto;
  font-size: 12px;
  font-family: '微软雅黑';
  line-height: normal;
  min-width: 1200px;
}
ul {
  list-style: none;
}
a {
  text-decoration: none;
}

.footer {
  width: 100%;
  background-color: rgb(235, 197, 198);
  padding-top: 70px;
  height: auto;
  overflow: hidden;
}
.other-link {
  width: 1200px;
  margin: 0 auto;
  height: auto;
  overflow: hidden;
}
.other-link > div {
  float: left;
}
.other-link .sucai-contact {
  float: right;
}
.link-look {
  width: 960px;
  padding-bottom: 45px;
}
.link-list {
  float: left;
  width: 20%;
}
.link-list h3 {
  height: 45px;
  line-height: 20px;
  font-size: 20px;
  color: #ffffff;
}
.link-list ul li a {
  line-height: 33px;
  color: white;
  font-size: 15px;
}
.link-list ul li a:hover {
  color: #ff6666;
}
.sucai-contact {
  width: 240px;
}
.bottom-logo {
  width: 132px;
  height: 38px;
}
.bottom-logo a {
  display: block;
  width: 100%;
  height: 100%;
}
.sucai-companyname {
  height: 40px;
  line-height: 18px;
  font-size: 18px;
  color: #ffffff;
  margin-top: 25px;
}
.sucai-phone,
.sucai-qq {
  height: 34px;
  line-height: 15px;
  font-size: 15px;
  color: #ffff;
}
.erweima-box {
  margin-top: 34px;
}
.erweima-box > div {
  float: left;
  width: 100px;
}
.erweima-box > div:first-child {
  margin-right: 30px;
}
.wechat-erwei div:first-child,
.phonenet-erwei div:first-child {
  height: 30px;
  line-height: 14px;
  font-size: 14px;
  color: #abacaf;
}
.footer-bottom {
  height: 100px;
  text-align: center;
  padding-top: 27px;
  border-top: 1px solid #42444b;
}
.footer-bottom p {
  line-height: 26px;
  font-size: 14px;
  color: #6c6e73;
}
.footer-bottom p span {
  margin-left: 17px;
}
.footer-bottom p span.police-icon {
  display: inline-block;
  width: 25px;
  height: 20px;
  vertical-align: top;
}
.sucai_wechat,
.sucai_web {
  width: 100%;
  height: 100px;
}
.sucai_wechat {
  background: url('https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=620579142,3051099267&fm=26&gp=0.jpg')
    no-repeat -250px -206px;
}
.sucai_web {
  background: url('https://ss3.bdstatic.com/70cFv8Sh_Q1YnxGkpoWK1HF6hhy/it/u=620579142,3051099267&fm=26&gp=0.jpg')
    no-repeat -360px -206px;
}
</style>

